<extend name="Layout/ins_page" />
<block name="content">
	{:W('PageHeader/simple',array('name'=>'编辑工作日志'))}
	<div class="sub-frame gray">
		<form method='post' id="form_data" name="form_data" enctype="multipart/form-data">
			<input type="hidden" id="id" name="id" value="{$vo.id}">
			<input type="hidden" id="ajax" name="ajax" value="0">
			<input type="hidden" id="opmode" name="opmode" value="edit">
			<input type="hidden" id="is_save" name="is_save" >
			<div class="frame">
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="start_date">日期：</label>
						<div class="layui-input-block">
							<div class="layui-inline">
								<div class="layui-input-inline" style="width: 100px;">
									<input type="text" class="layui-input input-start-date" name="start_date" readonly="readonly" value="{$vo.start_date}">
								</div>
								<div class="layui-form-mid">
									-
								</div>
								<div class="layui-input-inline" style="width: 100px;">
									<input type="text" class="layui-input input-end-date" name="end_date" readonly="readonly"  value="{$vo.end_date}">
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="dept_name">审核人：</label>
						<div class="layui-input-block">
							<input name="audit_name" class="layui-input" id="audit_name" type="text" readonly="readonly"  msg="请选择审核人" value="{$vo.audit_name}" />
							<input name="audit_id" id="audit_id" type="hidden" value="{$vo.audit_id}"/>
							<span class="add-on" onclick="select_user()" id="select_actor">选择</span>
						</div>
					</div>
				</div>

				<div class="bit-1">
					<div class="layui-form-item">
						<label class="layui-form-label">工作内容：</label>
						<div class="layui-input-block">
							<textarea class="layui-textarea simple" style="height:200px;" id="content" name="content">{$vo.content}</textarea>
						</div>
					</div>
				</div>
				<div class="bit-1">
					<div class="layui-form-item">
						<label class="layui-form-label">工作计划：</label>
						<div class="layui-input-block">
							<textarea class="layui-textarea simple" style="height:200px;" id="plan" name="plan">{$vo.plan}</textarea>
						</div>
					</div>
				</div>
				<div class="bit-1">
					<div class="layui-form-item">
						<label class="layui-form-label" for="name">附件：</label>
						<div class="layui-input-block">
							{:W('FileUpload/edit',array('add_file'=>$vo['add_file']))}
						</div>
					</div>
				</div>
				<div class="bit-1">
					<div class="layui-form-item">
						<div class="action layui-input-block col-sm-offset-2">
							<input class="btn btn_save" type="button" value="保存" data-val="0">
							<input class="btn btn_save" type="button" value="提交" data-val="1">
							<input class="btn btn-cancel" type="button" value="取消" onclick="go_return_url();">
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</block>
<block name="js">
	<script>
		layui.use(['global', 'editor'], function() {
			var $ = layui.jquery;

			$('.btn_save').on('click', function() {
				$("#is_save").val($(this).data("val"));
				send_form('form_data', "{:U('save')}", '', function() {

				});
			});
			$('#select_actor').on('click', function() {
				winopen("{:U('user_list')}", 560, 470);
			});
		});
	</script>

</block>